<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::search::FlannSearch&lt; PointT, FlannDistance &gt;::KMeansIndexCreator类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1search_1_1_flann_search_1_1_k_means_index_creator.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="classpcl_1_1search_1_1_flann_search_1_1_k_means_index_creator-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::search::FlannSearch&lt; PointT, FlannDistance &gt;::KMeansIndexCreator类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>Creates a FLANN KdTreeSingleIndex from the given input data.  
 <a href="classpcl_1_1search_1_1_flann_search_1_1_k_means_index_creator.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="flann__search_8h_source.html">flann_search.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::search::FlannSearch&lt; PointT, FlannDistance &gt;::KMeansIndexCreator 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1search_1_1_flann_search_1_1_k_means_index_creator.png" usemap="#pcl::search::FlannSearch_3C_20PointT_2C_20FlannDistance_20_3E::KMeansIndexCreator_map" alt=""/>
  <map id="pcl::search::FlannSearch_3C_20PointT_2C_20FlannDistance_20_3E::KMeansIndexCreator_map" name="pcl::search::FlannSearch_3C_20PointT_2C_20FlannDistance_20_3E::KMeansIndexCreator_map">
<area href="classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator.html" title="Helper class that creates a FLANN index from a given FLANN matrix. To use a FLANN index type with Fla..." alt="pcl::search::FlannSearch&lt; PointT, FlannDistance &gt;::FlannIndexCreator" shape="rect" coords="0,0,427,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a764da2aaf96b17637de27a3125cb5cfb"><td class="memItemLeft" align="right" valign="top"><a id="a764da2aaf96b17637de27a3125cb5cfb"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1search_1_1_flann_search_1_1_k_means_index_creator.html#a764da2aaf96b17637de27a3125cb5cfb">KMeansIndexCreator</a> ()</td></tr>
<tr class="memdesc:a764da2aaf96b17637de27a3125cb5cfb"><td class="mdescLeft">&#160;</td><td class="mdescRight">All FLANN kd trees created by this class will have a maximum of max_leaf_size points per leaf node. Higher values make index creation cheaper, but search more costly (and the other way around). <br /></td></tr>
<tr class="separator:a764da2aaf96b17637de27a3125cb5cfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f8717f68aa18680e084cc2bb50bff1a"><td class="memItemLeft" align="right" valign="top"><a id="a0f8717f68aa18680e084cc2bb50bff1a"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1search_1_1_flann_search_1_1_k_means_index_creator.html#a0f8717f68aa18680e084cc2bb50bff1a">~KMeansIndexCreator</a> ()</td></tr>
<tr class="memdesc:a0f8717f68aa18680e084cc2bb50bff1a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty destructor <br /></td></tr>
<tr class="separator:a0f8717f68aa18680e084cc2bb50bff1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b26f7a7b8b33516fb9f9fbe1b358ba3"><td class="memItemLeft" align="right" valign="top">virtual IndexPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1search_1_1_flann_search_1_1_k_means_index_creator.html#a7b26f7a7b8b33516fb9f9fbe1b358ba3">createIndex</a> (MatrixConstPtr data)</td></tr>
<tr class="memdesc:a7b26f7a7b8b33516fb9f9fbe1b358ba3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a FLANN Index from the input data.  <a href="classpcl_1_1search_1_1_flann_search_1_1_k_means_index_creator.html#a7b26f7a7b8b33516fb9f9fbe1b358ba3">更多...</a><br /></td></tr>
<tr class="separator:a7b26f7a7b8b33516fb9f9fbe1b358ba3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator.html">pcl::search::FlannSearch&lt; PointT, FlannDistance &gt;::FlannIndexCreator</a></td></tr>
<tr class="memitem:ae4c6c8d683f1bea217ea6d19bbcdb291 inherit pub_methods_classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator"><td class="memItemLeft" align="right" valign="top"><a id="ae4c6c8d683f1bea217ea6d19bbcdb291"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator.html#ae4c6c8d683f1bea217ea6d19bbcdb291">~FlannIndexCreator</a> ()</td></tr>
<tr class="memdesc:ae4c6c8d683f1bea217ea6d19bbcdb291 inherit pub_methods_classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator"><td class="mdescLeft">&#160;</td><td class="mdescRight">destructor <br /></td></tr>
<tr class="separator:ae4c6c8d683f1bea217ea6d19bbcdb291 inherit pub_methods_classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename PointT, typename FlannDistance = flann::L2_Simple &lt;float&gt;&gt;<br />
class pcl::search::FlannSearch&lt; PointT, FlannDistance &gt;::KMeansIndexCreator</h3>

<p>Creates a FLANN KdTreeSingleIndex from the given input data. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a7b26f7a7b8b33516fb9f9fbe1b358ba3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b26f7a7b8b33516fb9f9fbe1b358ba3">&#9670;&nbsp;</a></span>createIndex()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT , typename FlannDistance &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1search_1_1_flann_search.html">pcl::search::FlannSearch</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a>, FlannDistance &gt;::IndexPtr <a class="el" href="classpcl_1_1search_1_1_flann_search.html">pcl::search::FlannSearch</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a>, FlannDistance &gt;::KMeansIndexCreator::createIndex </td>
          <td>(</td>
          <td class="paramtype">MatrixConstPtr&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a FLANN Index from the input data. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>The FLANN matrix containing the input. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>The FLANN index. </dd></dl>

<p>实现了 <a class="el" href="classpcl_1_1search_1_1_flann_search_1_1_flann_index_creator.html#aa3caf91a33391513e1a61fd0edf6aae6">pcl::search::FlannSearch&lt; PointT, FlannDistance &gt;::FlannIndexCreator</a>.</p>
<div class="fragment"><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;{</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  <span class="keywordflow">return</span> (IndexPtr (<span class="keyword">new</span> flann::KMeansIndex&lt;FlannDistance&gt; (*data,flann::KMeansIndexParams ())));</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>search/include/pcl/search/<a class="el" href="flann__search_8h_source.html">flann_search.h</a></li>
<li>search/include/pcl/search/impl/<a class="el" href="flann__search_8hpp_source.html">flann_search.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>search</b></li><li class="navelem"><a class="el" href="classpcl_1_1search_1_1_flann_search.html">FlannSearch</a></li><li class="navelem"><a class="el" href="classpcl_1_1search_1_1_flann_search_1_1_k_means_index_creator.html">KMeansIndexCreator</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
